﻿using AutoMapper;
using TaskTodo.Todos;
using TaskTodo.Todos.Dtos;

namespace TaskTodo
{
    public class TaskTodoApplicationAutoMapperProfile : Profile
    {
        public TaskTodoApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */

            CreateMap<Todo, TodoDto>();
            CreateMap<TodoCreateDto, Todo>(MemberList.Source);
            CreateMap<TodoUpdateDto, Todo>(MemberList.Source);
        }
    }
}